﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace StockMonitor.Business
{
    /// <summary>
    /// 历史实时行情价格（每分钟价格）提供接口
    /// </summary>
    /// <remarks>
    /// 代码编写：<author>LANCEZHANG-PC\zhangxl</author><br/>
    /// 编写时间：<datetime>2012-10-17 5:16 PM</datetime>
    /// </remarks>
    public interface IETFPriceProvider
    {
        /// <summary>
        /// 获取某只股票的连续历史实时价格（倒序）
        /// </summary>
        /// <param name="stockCode">股票代码</param>
        /// <param name="priceCount">所需价格个数</param>
        /// <returns>历史实时价格列表</returns>
        List<double> GetHistoryPrice(string stockCode, int priceCount);

        /// <summary>
        /// 获取某只股票间隔N分钟的历史实时价格序列（倒序）
        /// </summary>
        /// <param name="stockCode">股票代码</param>
        /// <param name="priceCount">所需价格个数</param>
        /// <param name="span">时间间隔</param>
        /// <returns>历史实时价格列表</returns>
        List<double> GetHistoryPrice(string stockCode, int priceCount, int span);

        /// <summary>
        /// 获取一只股票N分钟之前的价格.
        /// </summary>
        /// <param name="stockCode">股票代码.</param>
        /// <param name="miniuteBefore">分钟数.</param>
        /// <returns></returns>
        /// <remarks>
        /// 代码编写：<author>LANCEZHANG-PC\zhangxl</author><br/>
        /// 编写时间：<datetime>2012-10-17 5:32 PM</datetime>
        /// </remarks>
        double GetBeforePrice(string stockCode, int miniuteBefore);
    }
}
